package ch04Spring.service;

import ch04Spring.User;
import ch04Spring.dao.UserDao;

public class UserServiceImpl implements UserService {
//    private  UserDao dao= UserDaoFactory.getInstance();
    private UserDao userDao;

    @Override
    public void save(User user) {
        userDao.save(user);
    }
    public void setUserDao(UserDao userDao){
        this.userDao=userDao;
    }
}
